from ppts.entity.GlobalTestObject import global_test_object
import logging  # 引入logging模块
import sys
import os
logging.basicConfig(level=logging.INFO,
                    format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s')
DEFAULT_CONFIG_NAME = 'config.yaml'
curPath = os.path.abspath(os.path.dirname(__file__))
sys.path.append(curPath)

if __name__ == '__main__':
    config_name = DEFAULT_CONFIG_NAME
    if len(sys.argv) > 1:
        config_name = sys.argv[1]
    global_test_object.start(config_name)
